package com.mysterymall.Service;

import com.google.zxing.WriterException;
import com.mysterymall.Common.Comp.Log;
import com.mysterymall.Common.Utils.Result;
import com.mysterymall.Model.Dto.TeamDto;
import org.springframework.web.bind.annotation.GetMapping;

import java.io.IOException;
import java.math.BigDecimal;

/**
 * @ClassName com.mysterymall.Service
 * @Description
 * @Author HuangWX
 * @Time 2023/12/02  14:02
 */
public interface TeamService {

    /**
     * 获取团队列表
     * @param page 页码
     * @param size 每页数量
     * @return Result
     */
    Result getTeamList(Integer page, Integer size);

    /**
     * 更新团队
     * @param teamDto 团队信息
     * @return Result
     */
    Result updateTeam(TeamDto teamDto);

    /**
     * 获取佣金明细
     * @return Result
     */
    Result getMyBrokerageDetail(Integer page, Integer size);

    /**
     * 获取我的团队列表
     * @return Result
     */
    Result getMyTeamList();

    /**
     * 邀请好友
     * @return Result
     */
    Result getInVite(String rootUrl) throws WriterException, IOException;

    /**
     * 获取团队详情
     * @param id 团队id
     * @return Result
     */
    Result getTeamInfo(String id,Integer page,Integer size);


    Result luckyCoinPayment(BigDecimal amount);

    Result addStaff(String teamUserId, String userName);
}
